Skip to content

Update for Swift 6 #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update for Swift 6 #28

wants to merge 2 commits into from

Conversation

ptoffy
Copy link
Member

@ptoffy ptoffy commented Jun 19, 2025

No description provided.

@ptoffy ptoffy requested a review from 0xTim June 19, 2025 10:21
.library(
name: "ElasticsearchNIOClient",
targets: ["ElasticsearchNIOClient"]),
name: "Elasticsearch",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably keep the client suffix

let (dockerResult, _) = shell("docker", "run", "--name", containerName, "-p", "\(port):9200", "-e", "discovery.type=single-node", "-e", "ES_JAVA_OPTS=-Xms256m -Xmx256m", "-d", "docker.elastic.co/elasticsearch/elasticsearch:7.6.2")
let (dockerResult, _) = shell(
"docker", "run", "--name", containerName, "-p", "\(port):9200", "-e", "discovery.type=single-node", "-e",
"ES_JAVA_OPTS=-Xms256m -Xmx256m", "-d", "docker.elastic.co/elasticsearch/elasticsearch:7.6.2")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably bump the ElasticSearch version

Comment on lines +9 to +10
var client: ElasticsearchClient!
var httpClient: HTTPClient!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these need to be IUOs now?

}

@Test
func testURLSetup() async throws {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should probably be 2 tests with parameterised tests

}

if let body {
self.logger.trace("Request body: \(body)")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should log the rest of the parts of the request as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants